<!doctype html>
<html class="no-js">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>{:session('conf.title')}</title>
  <meta name="description" content="这是一个 index 页面">
  <meta name="keywords" content="index">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <link rel="icon" type="image/png" href="__ADMIN__/i/favicon.png">
  <link rel="apple-touch-icon-precomposed" href="__ADMIN__/i/app-icon72x72@2x.png">
  <meta name="apple-mobile-web-app-title" content="Amaze UI" />
  <link rel="stylesheet" href="__ADMIN__/css/amazeui.min.css"/>
  <link rel="stylesheet" href="__ADMIN__/css/admin.css">

  {block name="css"}
  {/block}
</head>
<body>
<!--[if lte IE 9]>
<p class="browsehappy">你正在使用<strong>过时</strong>的浏览器，Amaze UI 暂不支持。 请 <a href="http://browsehappy.com/" target="_blank">升级浏览器</a>
  以获得更好的体验！</p>
<![endif]-->

<header class="am-topbar admin-header">
  <div class="am-topbar-brand">
    <strong>{:session('conf.uname')}</strong> <small>后台管理模板HTML</small>
  </div>

  <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only" data-am-collapse="{target: '#topbar-collapse'}"><span class="am-sr-only">导航切换</span> <span class="am-icon-bars"></span></button>

  <div class="am-collapse am-topbar-collapse" id="topbar-collapse">

    <ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right admin-header-list">
      <li><a href="javascript:;"><span class="am-icon-envelope-o"></span> 收件箱 <span class="am-badge am-badge-warning">5</span></a></li>
      <li class="am-dropdown" data-am-dropdown>
        <a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:;">
          <span class="am-icon-users"></span> 管理员 <span class="am-icon-caret-down"></span>
        </a>
        <ul class="am-dropdown-content">
          <li><a href="{:U('user/setpassword')}"><span class="am-icon-user"></span> 修改密码</a></li>
          <li><a href="javascript:;" onclick="logout()"><span class="am-icon-power-off"></span>   用户退出</a></li>
        </ul>
      </li>
      <li><a href="javascript:;" id="admin-fullscreen"><span class="am-icon-arrows-alt"></span> <span class="admin-fullText">开启全屏</span></a></li>
    </ul>
  </div>
</header>

<div class="am-cf admin-main">
  <!-- sidebar start -->
  <div class="admin-sidebar">
    <ul class="am-list admin-sidebar-list">
      <li><a href="{:U('home/index')}"><span class="am-icon-home"></span> 首页</a></li>
      <!-- <li class="admin-parent">
        <a class="am-cf" data-am-collapse="{target: '#collapse-nav'}"><span class="am-icon-file"></span> 页面模块 <span class="am-icon-angle-right am-fr am-margin-right"></span></a>
        <ul class="am-list am-collapse admin-sidebar-sub am-in" id="collapse-nav">
          <li><a href="admin-user.html" class="am-cf"><span class="am-icon-check"></span> 个人资料<span class="am-icon-star am-fr am-margin-right admin-icon-yellow"></span></a></li>
          <li><a href="admin-help.html"><span class="am-icon-puzzle-piece"></span> 帮助页</a></li>
          <li><a href="admin-gallery.html"><span class="am-icon-th"></span> 相册页面<span class="am-badge am-badge-secondary am-margin-right am-fr">24</span></a></li>
          <li><a href="admin-log.html"><span class="am-icon-calendar"></span> 系统日志</a></li>
          <li><a href="admin-404.html"><span class="am-icon-bug"></span> 404</a></li>
        </ul>
      </li>
      <li><a href="admin-table.html"><span class="am-icon-table"></span> 表格</a></li> -->
      <!-- <li><a href="{:U('album/index')}"><span class="am-icon-pencil-square-o"></span> 相册管理</a></li> -->
      <li class="admin-parent">
        <a class="am-cf am-collapsed" data-am-collapse="{target: '#collapse-nav'}"><span class="am-icon-file"></span> 相册管理 <span class="am-icon-angle-right am-fr am-margin-right"></span></a>
        <ul class="am-list admin-sidebar-sub <?=CONTROLLER_NAME=='album' || CONTROLLER_NAME=='picture'?'':'am-collapse'?>" id="collapse-nav">
          <li><a href="{:U('album/index')}" class="am-cf"><span class="am-icon-check"></span> 相册管理<span class="am-icon-star am-fr am-margin-right admin-icon-yellow"></span></a></li>
          {:W('Album/albumList')}
        </ul>
      </li>
      <li><a href="{:U('documents/index')}"><span class="am-icon-pencil-square-o"></span> 文档管理</a></li>
      <li><a href="{:U('sorting/index')}"><span class="am-icon-pencil-square-o"></span> 分类管理</a></li>
      <li><a href="{:U('conf/update')}"><span class="am-icon-pencil-square-o"></span> 系统设置</a></li>
      <li><a href="javascript:;" onclick="logout()"><span class="am-icon-sign-out"></span> 注销</a></li>
    </ul>

    <div class="am-panel am-panel-default admin-sidebar-panel">
      <div class="am-panel-bd">
        <p><span class="am-icon-bookmark"></span> 公告</p>
        <p>时光静好，与君语；细水流年，与君同。—— Amaze</p>
      </div>
    </div>

    <div class="am-panel am-panel-default admin-sidebar-panel">
      <div class="am-panel-bd">
        <p><span class="am-icon-tag"></span> wiki</p>
        <p>Welcome to the Amaze wiki!</p>
      </div>
    </div>
  </div>
<!-- sidebar end -->
  {block name="main"}主内容{/block}
<!-- content end -->
  </div>

<footer>
  <hr>
  <p class="am-padding-left">© 2014 AllMobilize, Inc. Licensed under MIT license. <a href="{:session('conf.domains')}" target="_blank">{:session('conf.uname')}</a></p>
</footer>

<!--[if lt IE 9]>
<script src="__ADMIN__/js/jquery1.11.1.min.js"></script>
<script src="__ADMIN__/js/modernizr.js"></script>
<script src="__ADMIN__/js/polyfill/rem.min.js"></script>
<script src="__ADMIN__/js/polyfill/respond.min.js"></script>
<script src="__ADMIN__/js/amazeui.legacy.js"></script>
<![endif]-->

<!--[if (gte IE 9)|!(IE)]><!-->
<script src="__ADMIN__/js/jquery.min.js"></script>
<script src="__ADMIN__/js/amazeui.min.js"></script>
<!--<![endif]-->
<script src="__ADMIN__/js/app.js"></script>
<script type="text/javascript" src="__ADMIN__/layer/layer.js"></script>
<script type="text/javascript" src="/static/jqusey.form.js"></script>
<script type="text/javascript">
function logout(){
    layer.confirm('是否注销登录？', {
        btn: ['注销','取消'], //按钮
        icon: 0
    }, function(){
        layer.msg('正在注销中，请稍候。。。', {time: 2000},function(){
            $.get("{:U('user/logout')}",function(){
                location.href="{:U('index/index')}";
            });
        });
    });
}
</script>
{block name="js"}
{/block}
</body>
</html>
